package com.springboot.aop.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/aop")
public class AopController {
    private Logger logger = LoggerFactory.getLogger(AopController.class);

    @GetMapping(value = "test1")
    public String test1(){
        logger.info("test1方法进行中...");
        return "success";
    }
}
